﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Layout
/// </summary>
public class Layout
{
    private int LayoutId { get; set; }
    private string Name { get; set; }
    private List<Row> _rows; 

	public Layout(int layoutId, string name)
	{
	    LayoutId = layoutId;
	    Name = name;
	    _rows = new List<Row>();
	}

    public void AddRow(Row row)
    {
        _rows.Add(row);
    }

    public void AddMultiplyRows(List<Row> rows)
    {
        _rows.AddRange(rows);
    }

    public List<Row> GetListOfRows()
    {
        return _rows;
    } 
}